package com.echo.exception;

/**
 * 文章相关异常类
 */
public class ArticleException extends Exception {
    
    // 预定义的异常实例
    public static final ArticleException ARTICLE_NOT_FOUND = new ArticleException("文章不存在");
    public static final ArticleException TITLE_EMPTY = new ArticleException("标题不能为空");
    public static final ArticleException TITLE_TOO_LONG = new ArticleException("标题不能超过100个字符");
    public static final ArticleException CONTENT_EMPTY = new ArticleException("内容不能为空");
    
    public ArticleException() {
        super();
    }
    
    public ArticleException(String message) {
        super(message);
    }
    
    public ArticleException(String message, Throwable cause) {
        super(message, cause);
    }
}